<template>
  <view>
    <navigator :url="'/pkg-house/RepairStatus/RepairStatus?obj='+JSON.stringify({status:status,txt:txt})">
      <!-- <navigator :url="'/pkg-house/RepairStatus/RepairStatus?status='+status"> -->
      <view class="house-item">
        <view class="swipe-action u-border-top u-border-bottom">
          <view class="swipe-action__content">
            <view class="title">
              <view class="left">
                北京富力家园1单元101室
              </view>
              <view class="right">
                <view :class="status">
                  {{txt}}
                </view>
                <!-- <view class="waiting">
      								审核中
      							</view>
      							<view class="error">
      								审核通过
      							</view> -->
              </view>
            </view>
            <view class="content">
              <view class="number">
                <text>报修项目</text>
                <text>水暖</text>
              </view>
              <view class="name">
                <text>预约时间</text>
                <text>2022/08/13</text>
              </view>
              <view class="phone">
                <text>电话号码</text>
                <text>18332566962</text>
              </view>
            </view>
          </view>
        </view>
      </view>
    </navigator>
  </view>
</template>

<script>
  export default {
    name: "repair-item",
    data() {
      return {

      };
    },
    props: {
      txt: {
        type: String
      },
      status: {
        type: String
      }
    }
  }
</script>

<style lang="scss" scoped>
  .house-item {
    width: 100%;
    height: 249rpx;
    border-radius: 16rpx;
    background: #FFFFFF;
    margin-bottom: 10rpx;

    .title {
      height: 96rpx;
      border-bottom: 1rpx solid #F2F2F6;
      padding: 0 30rpx;
      display: flex;
      justify-content: space-between;
      align-items: center;

      .left {
        font-size: 30rpx;
        color: #333;
      }

      .right {
        .success {
          width: 128rpx;
          height: 48rpx;
          color: #27AE60;
          border-radius: 10rpx;
          background: #EBF8F0;
          font-size: 24rpx;
          line-height: 48rpx;
          text-align: center;
        }

        .waiting {
          width: 128rpx;
          height: 48rpx;
          border-radius: 10rpx;
          background: #E5F0FB;
          text-align: center;
          line-height: 48rpx;
          font-size: 24rpx;
          color: #2D9CDB;
        }

        .finish {
          width: 128rpx;
          height: 48rpx;
          color: orange;
          border-radius: 10rpx;
          background: #FCF2ED;
          font-size: 24rpx;
          line-height: 48rpx;
          text-align: center;
        }

        .cancel {
          width: 128rpx;
          height: 48rpx;
          color: #ffff;
          border-radius: 10rpx;
          background: #b7b7b9;
          font-size: 24rpx;
          line-height: 48rpx;
          text-align: center;
        }
      }
    }

    .content {
      height: 152rpx;
      padding: 24rpx 30rpx;
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
      justify-content: space-between;

      view {
        display: flex;
        justify-content: space-between;
        font-size: 28rpx;

        text:nth-child(1) {
          color: #C3C3C5;
        }

        text:nth-child(2) {
          color: #686868;

        }
      }
    }
  }
</style>
